package com.ruoyi.project.domain;


import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * bom信息对象 bom_info
 *
 * @author ruoyi
 * @date 2022-08-29
 */
public class BomInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 项目编号 */
    @Excel(name = "项目编号")
    private String projectNo;

    /** BOM编号 */
    @Excel(name = "BOM编号")
    private String bomNo;

    /** BOM名称 */
    @Excel(name = "BOM名称")
    private String bomName;

    /** 备注 */
    @Excel(name = "备注")
    private String comment;
    /** 构件编号 */
    @Excel(name = "构件编号")
    private String compomentNo;

    List<BomPartstRef> bomPartstRefList;

    public List<BomPartstRef> getBomPartstRefList() {
        return bomPartstRefList;
    }

    public void setBomPartstRefList(List<BomPartstRef> bomPartstRefList) {
        this.bomPartstRefList = bomPartstRefList;
    }

    private List<PartstInfo> partstInfoList;

    public List<PartstInfo> getPartstInfoList() {
        return partstInfoList;
    }

    public void setPartstInfoList(List<PartstInfo> partstInfoList) {
        this.partstInfoList = partstInfoList;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setProjectNo(String projectNo)
    {
        this.projectNo = projectNo;
    }

    public String getProjectNo()
    {
        return projectNo;
    }
    public void setBomNo(String bomNo)
    {
        this.bomNo = bomNo;
    }

    public String getBomNo()
    {
        return bomNo;
    }
    public void setBomName(String bomName)
    {
        this.bomName = bomName;
    }

    public String getBomName()
    {
        return bomName;
    }
    public void setComment(String comment)
    {
        this.comment = comment;
    }

    public String getComment()
    {
        return comment;
    }

    public String getCompomentNo() {
        return compomentNo;
    }

    public void setCompomentNo(String compomentNo) {
        this.compomentNo = compomentNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("projectNo", getProjectNo())
                .append("bomNo", getBomNo())
                .append("bomName", getBomName())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("comment", getComment())
                .toString();
    }
}
